package com.hibernate.domain;

import java.io.Serializable;

public class Student implements Serializable {
	private Long sid ;
	private String sname ;
	private String description ;
	private Classes classes ;
	
	public Student() {
	}
	
	public Student(String sname, String description) {
		super();
		this.sname = sname;
		this.description = description;
	}

	public Long getSid() {
		return sid;
	}
	public void setSid(Long sid) {
		this.sid = sid;
	}
	

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}

	public Classes getClasses() {
		return classes;
	}

	public void setClasses(Classes classes) {
		this.classes = classes;
	}

	@Override
	public String toString() {
		return "Student [sid=" + sid + ", sname=" + sname + ", description="
				+ description + ", classes=" + classes + "]";
	}

}
